Skip to content

fix: prevent duplicate PRs from update-openapi-spec workflow#63

Closed
watahani with Copilot wants to merge 2 commits into
mainfrom
copilot/investigate-github-actions-configuration
Closed

fix: prevent duplicate PRs from update-openapi-spec workflow#63
watahani with Copilot wants to merge 2 commits into
mainfrom
copilot/investigate-github-actions-configuration

Conversation

Copilot AI commented Mar 19, 2026

Copy link
Copy Markdown

The update-openapi-spec workflow was opening a new PR on every daily run because the branch name included ${{ github.run_number }}, which is unique per execution. peter-evans/create-pull-request treats each new branch name as a new PR.

Change

# Before — unique branch per run → new PR every day
branch: update-openapi-spec-${{ github.run_number }}

# After — stable branch → existing PR is updated in-place
branch: update-openapi-spec

With a fixed branch name, subsequent runs push to the same branch and update the existing open PR instead of creating a new one. This matches the pattern already used correctly in update-idp-openapi-spec.yml.


💬 Send tasks to Copilot coding agent from Slack and Teams to turn conversations into code. Copilot posts an update in your thread when it's finished.

…t duplicate PRs

Co-authored-by: watahani <28978715+watahani@users.noreply.github.com>
Copilot AI changed the title [WIP] Investigate GitHub Actions configuration for duplicate PRs fix: prevent duplicate PRs from update-openapi-spec workflow Mar 19, 2026
Copilot AI requested a review from watahani March 19, 2026 05:35
@watahani watahani closed this Mar 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants